package com.pkk.cloud.support.admin.dto.req.server;

import java.io.Serializable;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description: 服务端的添加和更新
 * @author: peikunkun
 * @create: 2020-04-01 21:28
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OauthServerUpdateReqDto implements Serializable {

  private static final long serialVersionUID = 2703214855997049354L;

  /**
   * 主键，服务ID
   */
  @NotNull(message = "服务主键ID不能为空")
  private Long id;


  /**
   * 服务名称
   */
  @NotBlank(message = "服务名称不能为空")
  private String serverName;


  /**
   * 服务code信息
   */
  @NotBlank(message = "服务CODE不能为空")
  private String serverCode;

  /**
   * 服务排序正序排列
   */
  private Integer sort;

  /**
   * 备注
   */
  private String remark;

}
